//----------------------------------------------------------------
#include "ResourceNode.h"
//----------------------------------------------------------------
ResourceNode::ResourceNode(ResourceList kNodeType, int iTotalAmount, int iPosX, int iPosY):
m_kResourceType(kNodeType),
m_iTotalAmount(iTotalAmount),
m_iCurrentAmount(iTotalAmount),
m_iPosX(iPosX),
m_iPosY(iPosY)
{
}
//----------------------------------------------------------------
ResourceNode::~ResourceNode()
{
}
//----------------------------------------------------------------
void ResourceNode::mine(int iAmountMined)
{
	m_iCurrentAmount -= iAmountMined; 
	cout << "Mine amount: " << m_iCurrentAmount << endl;
}
